from django.contrib import admin
from django.urls import path,re_path
from miniweb import views

urlpatterns = [
	# http://127.0.0.1:8000/index/
	path('index/',views.MiniwebIndexView.as_view(),name='index'),
	path('index.html/',views.MiniwebIndexView.as_view()),
	# http://127.0.0.1:8000/center/
	path('center/',views.MiniwebCenterView.as_view()),
	path('center.html/',views.MiniwebCenterView.as_view()),

	# GET /add/000039/
	re_path('add/(?P<code>.+)/',views.MiniwebaddView.as_view()),

	# "GET /del/000036/
	re_path('del/(?P<code>.+)/',views.MiniwebdelView.as_view()),

	# GET /update/000050/
	re_path('update/(?P<code>.+)/',views.MiniwebupdateView.as_view()),

	# /mark/000039/利好/
	re_path('mark/(?P<code>.+)/(?P<note_info>.+)/',views.MiniwebMakeView.as_view()),


]
